package com.jumi.microservice.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.jumi.microservice.entity.JmExtraDiscount;
import com.jumi.microservice.mapper.JmExtraDiscountMapper;
import com.jumi.microservice.service.IJmExtraDiscountService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户额外折扣 服务实现类
 * </p>
 *
 * @author 要挑客户管理团队
 * @since 2020-10-15
 */
@Service
public class JmExtraDiscountServiceImpl extends ServiceImpl<JmExtraDiscountMapper, JmExtraDiscount> implements IJmExtraDiscountService {

    @Override
    public JmExtraDiscount getDiscountByUid(Integer uid) {
        QueryWrapper wrapper=new QueryWrapper();
        wrapper.eq("uid",uid);
        return getOne(wrapper);
    }
}
